import { ref } from "vue";

const globalCount = ref(0);
export function useCount() {
  const localCount = ref(10);
  function incrementGlobalCount() {
    globalCount.value++;
  }
  function incrementLocalCount() {
    localCount.value++;
  }
  return {
    globalCount,
    incrementGlobalCount,
    localCount,
    incrementLocalCount,
  };
}
